package com.gzhuxj201.util;


public class UserHolder {
    private static final ThreadLocal<Object> tl = new ThreadLocal<>();

    public static void saveUser(Object user){
        tl.set(user);
    }

    public static Object getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
